package com.design.factory;

public interface IBean {

    void print();

    class BeanA implements IBean {

        @Override
        public void print() {
            System.out.println(this);
        }
    }

     class BeanB implements IBean{
        @Override
        public void print() {
            System.out.println(this);
        }
    }
}
